import { defineUserConfig } from "vuepress";
import type { DefaultThemeOptions } from "vuepress";
import recoTheme from "vuepress-theme-reco";

export default defineUserConfig({
  port: '8099',
  title: "众联共识",
  description: "秉持合作、共创、共赢的原则提供股东服务",
  theme: recoTheme({
    style: "@vuepress-reco/style-default",
    logo: "/logo.png",
    author: "众联共识",
    authorAvatar: "/head.png",
    docsRepo: "",
    docsBranch: "main",
    docsDir: "example",
    lastUpdatedText: "",
    // series 为原 sidebar
    series: {
      "/docs/theme-reco/": [
        {
          text: "module one",
          children: ["home", "theme"],
        },
        {
          text: "module two",
          children: ["api", "plugin"],
        },
      ],
    },
    locales: {
      '/': {
        lang: 'zh-CN', // 设置语言
        title: '众联共识',
        description: '合作、共创、共赢、共享、百年工程',
        navbar: [
          { text: "首页", link: "/" },
          { text: "公司使命", link: "/docs/mission/mission" },
          { text: "会员单位", link: "https://flowus.cn/share/df0055e0-3cde-4fb1-91e2-08c394ff9e23#c2cf4cfd-b213-426f-9b8a-e653a8060bac" },
          { text: "共赢项目",
            children: [
              { text: "平台项目", link: "https://flowus.cn/share/2580deaa-a8d8-4187-bd65-4db5b8664737"},
              { text: "项目申请", link: "/docs/project/applicationProject" },
            ]
          },
          { text: "共享资质", link: "https://docs.qq.com/slide/DWE9jaUVmY0VLUndR" },
          { text: "微擎服务", link: "/docs/wx/wx" },
        ],
        bulletin: {
          body: [
            {
              type: "text",
              content: `🎉🎉🎉众联共识自项目上线后获得社会各界人士称赞，目前已促成12家会员单位合作，众联共识会再接再厉，秉着合作、共创、共赢、共享、百年工程的创办理念为大家带来便利及机遇。`,
              style: "font-size: 12px;",
            },
            {
              type: "hr",
            },
            {
              type: "title",
              content: "联系",
            },
            {
              type: "text",
              content: `
          <ul>
            <li>邮箱：truemanlive@qq.com</li>
          </ul>`,
              style: "font-size: 12px;",
            },
            {
              type: "buttongroup",
              children: [
                {
                  text: "发邮件",
                  link: "mailTo:truemanlive@qq.com",
                },
              ],
            },
          ],
        },
      },
      '/en/': {
        lang: 'en-US',
        title: 'Consensus of Unity',
        description: 'Cooperation、Co-creation、Win-win、Sharing、Century Project',
        navbar: [
          { text: "Home", link: "/en" }
        ],
      }
    },
  }),
  locales: {
    '/': {
      lang: '中文', // 设置语言
      title: '众联共识',
      description: '合作、共创、共赢、共享、百年工程',
    },
    '/en/': {
      lang: 'english',
      title: 'Consensus of Unity',
      description: 'Cooperation、Co-creation、Win-win、Sharing、Century Project',
    }
  },
});
